package com.yan.demo.demo1;

import com.yan.demo.demo1.Task1;
import com.yan.demo.demo1.Account;

/**
 * @author taoge
 * @Date 2024/8/8 9:21
 * @Description
 */
public class Demo1 {
    public static void main(String[] args) {
        Account account = new Account(5000);
        Task1 task1 = new Task1(account);
        Thread t1 = new Thread(task1);
        Thread t2 = new Thread(task1);
        t2.start();
        t1.start();
    }
}
